package p270jp.pxv.android.viewholder;

import android.content.Context;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.recyclerview.widget.RecyclerView;
import p047bg.C1124a;
import p216hn.DefaultConstructorMarker;
import p270jp.pxv.android.R;
import p314lg.ViewHolderRenewalLiveGiftBinding;
import p325m0.MutabilityOwnership;
import p371nj.LiveChatState;
import p652yj.C7346b;

/* compiled from: RenewalLiveGiftViewHolder.kt */
/* renamed from: jp.pxv.android.viewholder.RenewalLiveGiftViewHolder */
/* loaded from: classes2.dex */
public final class RenewalLiveGiftViewHolder extends RecyclerView.AbstractC0819y {
    private final ViewHolderRenewalLiveGiftBinding binding;
    public static final Companion Companion = new Companion(null);
    public static final int $stable = 8;

    /* compiled from: RenewalLiveGiftViewHolder.kt */
    /* renamed from: jp.pxv.android.viewholder.RenewalLiveGiftViewHolder$Companion */
    /* loaded from: classes2.dex */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(DefaultConstructorMarker eVar) {
            this();
        }

        public final RenewalLiveGiftViewHolder createViewHolder(ViewGroup viewGroup) {
            ViewHolderRenewalLiveGiftBinding q8Var = (ViewHolderRenewalLiveGiftBinding) C7346b.m327a(viewGroup, "parent", R.layout.view_holder_renewal_live_gift, viewGroup, false);
            MutabilityOwnership.m3746l(q8Var, "binding");
            return new RenewalLiveGiftViewHolder(q8Var, null);
        }
    }

    private RenewalLiveGiftViewHolder(ViewHolderRenewalLiveGiftBinding q8Var) {
        super(q8Var.f2666e);
        this.binding = q8Var;
    }

    public /* synthetic */ RenewalLiveGiftViewHolder(ViewHolderRenewalLiveGiftBinding q8Var, DefaultConstructorMarker eVar) {
        this(q8Var);
    }

    public final void display(LiveChatState.C5360d dVar) {
        MutabilityOwnership.m3745m(dVar, "gift");
        this.binding.mo3778z(dVar);
    }

    public final void recycle() {
        Context context = this.itemView.getContext();
        MutabilityOwnership.m3746l(context, "itemView.context");
        ImageView imageView = this.binding.f22147r;
        MutabilityOwnership.m3746l(imageView, "binding.giftImage1");
        C1124a.m10188d(context, imageView);
        Context context2 = this.itemView.getContext();
        MutabilityOwnership.m3746l(context2, "itemView.context");
        ImageView imageView2 = this.binding.f22148s;
        MutabilityOwnership.m3746l(imageView2, "binding.giftImage2");
        C1124a.m10188d(context2, imageView2);
        Context context3 = this.itemView.getContext();
        MutabilityOwnership.m3746l(context3, "itemView.context");
        ImageView imageView3 = this.binding.f22149t;
        MutabilityOwnership.m3746l(imageView3, "binding.giftImage3");
        C1124a.m10188d(context3, imageView3);
        Context context4 = this.itemView.getContext();
        MutabilityOwnership.m3746l(context4, "itemView.context");
        ImageView imageView4 = this.binding.f22150u;
        MutabilityOwnership.m3746l(imageView4, "binding.giftImage4");
        C1124a.m10188d(context4, imageView4);
        Context context5 = this.itemView.getContext();
        MutabilityOwnership.m3746l(context5, "itemView.context");
        ImageView imageView5 = this.binding.f22151v;
        MutabilityOwnership.m3746l(imageView5, "binding.giftImage5");
        C1124a.m10188d(context5, imageView5);
    }
}
